package com.wang.service.impl;

import com.wang.bean.SysFile;
import com.wang.mapper.SysFileMapper;
import com.wang.service.SysFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class SysFileServiceImpl implements SysFileService {

    @Autowired
    private SysFileMapper sysFileMapper;

    @Override
    public void uploadSysFile(SysFile sysFile) {
        sysFileMapper.uploadSysFile(sysFile);
    }

    @Override
    public SysFile findSysFileByFileName(String file_name) {
        return sysFileMapper.findSysFileByFileName(file_name);
    }

    @Override
    public SysFile findSysFileByFile(String file) {
        return sysFileMapper.findSysFileByFile(file);
    }

    @Override
    public SysFile uploadExcel(String fileName, MultipartFile file) throws Exception {
        return null;
    }
}
